import Vue from "vue";
import VueRouter from "vue-router";

import Index from "../components/Index";
import myAccount from "../components/zfc/user/myAccount";
import myAccountUI from "../components/zfc/user/realize/myAccountUI";
import Exchange from "../components/zfc/user/realize/Exchange";
import Bill from "../components/zfc/user/realize/Bill";
import Order from "../components/zfc/user/realize/Order";
import OrderInfo from "../components/zfc/user/realize/OrderInfo";
import OrderEvaluate from "../components/zfc/user/realize/OrderEvaluate";
import MyJf from "../components/zfc/user/realize/myJf/MyJf";
import MyJfDd from "../components/zfc/user/realize/myjfdd/MyJfDd";
import MyJfDdInfo from "../components/zfc/user/realize/myjfdd/MyJfDdInfo";
import MyQb from "../components/zfc/user/realize/myqb/MyQb";

import ShoppingCartcon from "../components/Recollection/Shopping-Cart-con";
import Shoppingconfirm from '../components/Recollection/Shopping-confirm';
// import ShoppingCart from "../components/Recollection/Shopping-Cart";

Vue.use(VueRouter);

let router = new VueRouter({
  routes: [{
      name: "Index",
      path: "/",
      component: Index,
    },
    {
      // name: "myAccount",
      path: "/myaccount",
      component: myAccount,
      children: [{
          name: "myAccountUI",
          path: "/",
          component: myAccountUI,
        },
        {
          name: "Exchange",
          path: "/exchange",
          component: Exchange,
        },
        {
          name: "Bill",
          path: "/bill",
          component: Bill,
        },
        {
          name: "Order",
          path: "/order",
          component: Order,
        },
        {
          name: "OrderInfo",
          path: "/orderinfo",
          component: OrderInfo,
        },
        {
          name: "OrderEvaluate",
          path: "/orderevaluate",
          component: OrderEvaluate,
        },
        {
          name: "MyJf",
          path: "/myjf",
          component: MyJf,
        },
        {
          name: "MyJfDd",
          path: "/myjfdd",
          component: MyJfDd,
        },
        {
          name: "MyJfDdInfo",
          path: "/myjfddinfo",
          component: MyJfDdInfo,
        },
        {
          name: "MyQb",
          path: "/myqb",
          component: MyQb,
        },
      ],
    },
    {
      name: "Shopping-Cart-con",
      path: "/shoppingCartcon",
      component: ShoppingCartcon,
    },
    // {
    //   name: "ShoppingCart",
    //   path: "/shoppingcart",
    //   component: ShoppingCart,
    // },
    {
      name: "Shopping-confirm",
      path: "/shoppingconfirm",
      component: Shoppingconfirm,
    },
  ],
});

export default router;